﻿<phone:PhoneApplicationPage 
    x:Class="CommonControls.Feedback"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="728"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="PortraitOrLandscape" Orientation="Portrait"
    shell:SystemTray.IsVisible="False" Loaded="Feedback_Loaded">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="{StaticResource bipivot}"  >

        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28" >
           
            <TextBlock x:Name="PageTitle" Text="Send Feedback" Margin="15,20,0,0" Style="{StaticResource AboutTitleStyle}" />
        </StackPanel>
        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <TextBlock Grid.Row="0"  Text="Topics" Style="{StaticResource FormElementLabel}" />
            <toolkit:ListPicker Grid.Row="1" x:Name="TopicListPicker"  >
                <toolkit:ListPicker.ItemTemplate>
                    <DataTemplate>
                        <StackPanel Orientation="Horizontal">
                            <TextBlock Text="{Binding Topic}" Margin="12 0 0 0" />
                        </StackPanel>
                    </DataTemplate>
                </toolkit:ListPicker.ItemTemplate>
                <toolkit:ListPicker.FullModeItemTemplate>
                    <DataTemplate>
                        <StackPanel Orientation="Horizontal" Margin="16 21 0 20">
                            <TextBlock Text="{Binding Topic}" Margin="16 0 0 0" FontSize="32" FontFamily="{StaticResource PhoneFontFamilyLight}" />
                        </StackPanel>
                    </DataTemplate>
                </toolkit:ListPicker.FullModeItemTemplate>
            </toolkit:ListPicker>
            <StackPanel Grid.Row="2" Orientation="Horizontal">
                <TextBlock Text="Email ID"  Style="{StaticResource FormElementLabel}" />
                <TextBlock Margin="20,10,0,0" Foreground="Red" x:Name="tblkMailIdValidation" Text="(optional)" Style="{StaticResource PhoneTextTitle3Style}"/>
            </StackPanel>
            <TextBox Grid.Row="3" x:Name="tbxMailId" AcceptsReturn="True" Background="White" InputScope="EmailNameOrAddress" Margin="0,0,0,0"  />
            <StackPanel Grid.Row="4" Orientation="Horizontal">
                <TextBlock Text="Message"  Style="{StaticResource FormElementLabel}"/>
                <TextBlock Margin="20,10,0,0" x:Name="tblkMessageValidation" Text="Required" Style="{StaticResource PhoneTextTitle3Style}" Visibility="Collapsed" Foreground="Red"/>
            </StackPanel>
            <TextBox Grid.Row="5" Height="330" x:Name="txtboxFeedback" Background="White" AcceptsReturn="True" InputScope="Text" Margin="0,0,0,0" TextWrapping="Wrap" />
        </Grid>
    </Grid>

    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar.feature.email.rest.png" Text="send mail" Click="ApplicationBarIconSendEmailButton_Click"/>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>

</phone:PhoneApplicationPage>